package com.steve.testng;

import org.testng.annotations.Test;

/**
 * @Author: STEVE
 * @Description: TestNG预期异常测试
 * @since: 2025-02-24
 */
public class TestCase1 {

    @Test(expectedExceptions = ArithmeticException.class)
    public void divisionWithException() {
        int i = 1 / 0;
        System.out.println("After division the value of i is : " + i);
    }

}
